package cn.source.system.controller.api;

import cn.source.common.core.domain.AjaxResult;
import cn.source.common.core.page.TableDataInfo;
import cn.source.system.asp.NoNeedCheck;
import cn.source.system.domain.AaBanner;
import cn.source.system.response.ApiBannerResponse;
import cn.source.system.service.IAaBannerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author chensl
 * @version 1.0.0
 * @ClassName ApiBannerController.java
 * @Description
 * @createTime 2023/8/5 19:40
 */
@RestController
@RequestMapping("/api/banner")
public class ApiBannerController {

    @Autowired
    private IAaBannerService aaBannerService;

    /**
     * 查询banner列表
     */
    @GetMapping("/list")
    @NoNeedCheck
    public AjaxResult list()
    {
        return AjaxResult.success(aaBannerService.apiBannerList());
    }

}
